<template>
	<view class="container">
		<text @click="back()" class="iconfont iconzuojiantou-copy backPostion" style="font-size: 45rpx;font-weight:bold;color: #7153FF;"></text>
		<view class="title">
			<image src="../../static/MyBook.png"></image>
			<view class="titleNum"><text>3</text></view>
		</view>
		<!-- <view class="bookList" v-for="(item, index) in bookList"> -->
			<bookListItem v-for="(item, index) in bookList" :bookItem="item"/>
<!-- 		</view> -->
	</view>
</template>

<script>  
	import bookListItem from "../../components/bookListItem.vue"
	export default {
		data() { 
			return {
				bookList:[
					{
						title: '我的猫',
						time: '2021-04-21'
					},
					{
						title: '我滴个天哦',
						time: '2021-04-21'
					},
					{
						title: '阪急故事',
						time: '2021-04-21'
					}
				]
			}
		},
		components: {
			bookListItem
		},
		methods:{
			back () {
				console.log("!23123")
				wx.switchTab({
					url: '../index/index'
				})
			} 
		}
	}
</script>

<style>
	.backPostion {
		left: 30rpx;
		top: 50rpx;
		position: fixed;
		z-index: 10;
	}
	.container {
		left: 0;
		top: 0;
		width: 100%;
		text-align: center;
		align-items: center;
		justify-content: center;
		margin: 40rpx;
	}
	.title {
		margin-top: 150rpx;
		width: 90%;
		align-items: center;
		justify-content: center;
		position: relative;
	}
	.title image {
		width: 100%;
		height: 180rpx;
	}
	.title .titleNum {
		position: absolute;
		top: 55rpx;
		left: 217rpx;
		font-size:45rpx;
		color: #ffd26b;
		font-weight: bold;
	}
	.bookList {
		position: absolute;
		left: -50rpx;
		width: 100%;
		display: flex;
		flex-direction: column;

	}
</style>
